package com.project.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import lombok.Data;

/**
 * @TableName t_inout
 */
@TableName(value = "t_inout")
@Data
public class AssetAllocate implements Serializable {
    /**
     * #
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 调拨流水号
     */
    @TableField(value = "lsh")
    private String lsh;

    /**
     * 对应的资产
     */
    @TableField(value = "assetId")
    private Integer assetid;

    /**
     * 对应的资产集合
     */
    @TableField(exist = false)
    private List<Asset> asset;

    /**
     * 资产编号
     */
    @TableField(value = "zcbh")
    private String zcbh;

    /**
     * 资产名称
     */
    @TableField(value = "zcmc")
    private String zcmc;

    /**
     * 调拨数量
     */
    @TableField(value = "dbsl")
    private Integer dbsl;

    /**
     * 部门id
     */
    @TableField(value = "mechanismId")
    private Integer mechanismid;

    /**
     * 对应的部门对象
     */
    @TableField(exist = false)
    private Mechanism mechanism;

    /**
     * 使用员工的id
     */
    @TableField(value = "staffId")
    private String staffid;

    /**
     * 对应的员工信息
     */
    @TableField(exist = false)
    private List<Staff> staff;

    /**
     * 员工信息实体
     */
    @TableField(exist = false)
    private Staff staff2;

    /**
     * 调拨日期
     */
    @TableField(value = "dbrq")
    private Date dbrq;

    /**
     * 归还数量
     */
    @TableField(value = "ghsl")
    private Integer ghsl;

    /**
     * 归还日期
     */
    @TableField(value = "ghrq")
    private Date ghrq;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}